-
Notifications
You must be signed in to change notification settings - Fork 263
feat(lsp): respect IDE user proxy settings / forward trust store #5553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Qodana Community for JVM7 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
...tbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/TrustChainUtil.kt
Fixed
Show fixed
Hide fixed
...tbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/TrustChainUtil.kt
Fixed
Show fixed
Hide fixed
...tbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/TrustChainUtil.kt
Fixed
Show fixed
Hide fixed
...tbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/TrustChainUtil.kt
Fixed
Show fixed
Hide fixed
...ains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
Fixed
Show fixed
Hide fixed
put( | ||
"HTTPS_PROXY", | ||
URIBuilder("http://${address.hostname}:${address.port}").apply { | ||
val login = HttpConfigurable.getInstance().proxyLogin |
Check failure
Code scanning / QDJVMC
Usage of API marked for removal Error
put( | ||
"HTTPS_PROXY", | ||
URIBuilder("http://${address.hostname}:${address.port}").apply { | ||
val login = HttpConfigurable.getInstance().proxyLogin |
Check failure
Code scanning / QDJVMC
Usage of API marked for removal Error
put( | ||
"HTTPS_PROXY", | ||
URIBuilder("http://${address.hostname}:${address.port}").apply { | ||
val login = HttpConfigurable.getInstance().proxyLogin |
Check failure
Code scanning / QDJVMC
Usage of API marked for removal Error
URIBuilder("http://${address.hostname}:${address.port}").apply { | ||
val login = HttpConfigurable.getInstance().proxyLogin | ||
if (login != null) { | ||
setUserInfo(login, HttpConfigurable.getInstance().plainProxyPassword) |
Check failure
Code scanning / QDJVMC
Usage of API marked for removal Error
URIBuilder("http://${address.hostname}:${address.port}").apply { | ||
val login = HttpConfigurable.getInstance().proxyLogin | ||
if (login != null) { | ||
setUserInfo(login, HttpConfigurable.getInstance().plainProxyPassword) |
Check failure
Code scanning / QDJVMC
Usage of API marked for removal Error
URIBuilder("http://${address.hostname}:${address.port}").apply { | ||
val login = HttpConfigurable.getInstance().proxyLogin | ||
if (login != null) { | ||
setUserInfo(login, HttpConfigurable.getInstance().plainProxyPassword) |
Check failure
Code scanning / QDJVMC
Usage of API marked for removal Error
...ains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt
Fixed
Show fixed
Hide fixed
...tbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/TrustChainUtil.kt
Fixed
Show fixed
Hide fixed
@@ -250,13 +258,49 @@ private class AmazonQServerInstance(private val project: Project, private val cs | |||
init { | |||
// will cause slow service init, but maybe fine for now. will not block UI since fetch/extract will be under background progress | |||
val artifact = runBlocking { ArtifactManager(project, manifestRange = null).fetchArtifact() }.toAbsolutePath() | |||
|
|||
// more slowness |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: slowness added to which process?
@@ -20,6 +20,8 @@ | |||
import com.intellij.openapi.util.Key | |||
import com.intellij.openapi.util.SystemInfo | |||
import com.intellij.util.io.await | |||
import com.intellij.util.net.HttpConfigurable |
Check failure
Code scanning / QDJVMC
Usage of API marked for removal Error
This change improves the proxy support story for the extension. With this, we honor customer CA cert if specified in the preferences UI. If it is not supplied, instead of leaving it blank, we now detect system certificates and send it over to the node based language server. This allows us to address some issues where users are on corporate proxies/firewalls that have a proxy url but not an explicitly defined cert and expects applications to honor system certs. We currently do the same system cert detection when downloading artifacts for lsp. Follows a similar approach as JB: aws/aws-toolkit-jetbrains#5553
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.